<?php
//连接数据库
$abc=@mysqli_connect('localhost','root','root','stock');
//设计链接编码的方式
mysqli_set_charst($abc,'utf8');
//增加数据
$sql="INSERT INTO'user'(id,email,password,regdate)
VALUSE(NULL,'g','g',CURRENT_TIMESTAMP)";
$result=mysqli_query($abc,$sql);
//执行SQL命令
$sql='SELECT*FROM  'user'';
$result=mysqli_query($abc,$sql);
//获取查询结果
echp "<table border=1>";
while($row=mysqli_fetch_array($result)){
    echo"<tr><td>".$row['id']."</tr><td>".$row['email']
    ."</tr><td>".$row['password']."</tr><td>".$row['regdate']."</tr><td>";